<?php
/**
 * Nweb Framework
 *
 * This script is protected by copyright. It's use, copying, modification
 * and distribution without written consent of the author is prohibited.
 *
 * @category    source
 * @package     pl.nweb.framework.ftp
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt  GNU Lesser General Public
 * @version     3.0 $Id$
 * @link        http://code.google.com/p/nweb-framework/
 * @link        http://framework.nweb.pl
 */

namespace pl\nweb\framework\ftp;

/**
 * Wyjątek klienta FTP
 *
 * @category    source
 * @package     pl.nweb.framework.ftp
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @version     3.0 $Id$
 */
class Exception extends \pl\nweb\framework\Exception
{
    /**
     * Kody błędów
     */
    const MSG_CONNECTION_ERROR    = 'Unable to connect to host %s on port %d';
    const COD_CONNECTION_ERROR    = 1300;
    const MSG_LOGIN_ERROR         = 'Unable to login with username %s';
    const COD_LOGIN_ERROR         = 1301;
    const MSG_PWD_ERROR           = 'Unable to get current directory';
    const COD_PWD_ERROR           = 1302;
    const MSG_SET_TIMEOUT_ERROR   = 'Unable to set timeout';
    const COD_SET_TIMEOUT_ERROR   = 1303;
    const MSG_SET_PASSIVE_ERROR   = 'Unable to set passive mode';
    const COD_SET_PASSIVE_ERROR   = 1304;
    const MSG_UNKNOWN_MODE        = 'Unknown FTP transfer mode';
    const COD_UNKNOWN_MODE        = 1305;
    const MSG_IS_NOT_FILE         = 'Path %s not exists or is not a file';
    const COD_IS_NOT_FILE         = 1306;
    const MSG_RENAME_ERROR        = 'File or directory %s not exists in server';
    const COD_RENAME_ERROR        = 1307;
    const MSG_UNSUPPORTED_SYSTEM  = 'Unsupported ftp server system "%s"';
    const COD_UNSUPPORTED_SYSTEM  = 1308;
    const MSG_DELETE_ERROR        = 'Unable to delete "%s" file';
    const COD_DELETE_ERROR        = 1310;
    const MSG_DELETE_DIR_ERROR    = 'Unable to delete "%s" directory';
    const COD_DELETE_DIR_ERROR    = 1311;
    const MSG_CREATE_DIR_ERROR    = 'Unable to create "%s" directory';
    const COD_CREATE_DIR_ERROR    = 1312;
    const MSG_WRITE_FILE_ERROR    = 'Unable to write local file "%s"';
    const COD_WRITE_FILE_ERROR    = 1313;
    const MSG_DOWNLOAD_FILE_ERROR = 'Unable to download file "%s" from server';
    const COD_DOWNLOAD_FILE_ERROR = 1314;
    const MSG_DIR_LIST_ERROR      = 'Unable to fech contents from dir "%s"';
    const COD_DIR_LIST_ERROR      = 1315;
    const MSG_DIR_RAW_LIST_ERROR  = 'Unable to fech raw contents from dir "%s"';
    const COD_DIR_RAW_LIST_ERROR  = 1316;
}